package com.itheima.controller;


import com.qiniu.util.Auth;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UploadController {

    @RequestMapping("/getToken")
    public String getToken(){
        Auth auth = Auth.create("YIPDaZe-gj9nxq2HzunNE2WQbgmd53sFlyM0xRbS", "Kh153VpGzonM-_oKMY8I-xqcCO6-Be5hxKx934yv");

        String token = auth.uploadToken("xiaomage-health");
        return token;
    }

}
